package com.san.hkhospital.mapper;

import com.san.hkhospital.entity.Account;
import com.san.hkhospital.entity.AccountExample;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

/**
 * ClassName:AccountMapper
 * PackageName:com.san.hkhospital.mapper
 * Description:
 *
 * @Author:yy
 * @CreatedAt:2024/11/13 19:26
 */


public interface AccountMapper {
    long countByExample(AccountExample example);

    int deleteByExample(AccountExample example);

    int deleteByPrimaryKey(Integer accId);

    int insert(Account record);

    int insertSelective(Account record);

    List<Account> selectByExample(AccountExample example);

    Account selectByPrimaryKey(Integer accId);

    int updateByExampleSelective(@Param("record") Account record, @Param("example") AccountExample example);

    int updateByExample(@Param("record") Account record, @Param("example") AccountExample example);

    int updateByPrimaryKeySelective(Account record);

    int updateByPrimaryKey(Account record);

    List<Account> searchAccount(Map<String, String> params);
}